package com.njym.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhangshanbing
 */
@TableName("org_business_rec")
public class OrgBusinessRec extends Model<OrgBusinessRec> {

    @Override
    protected Serializable pkVal() {
        return id;
    }

    /**
     * 主键
     * ID
     * isNullAble:0
     */
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 机构ID
     * isNullAble:1
     */
    private String orgId;

    /**
     * 支付方式ID（微信、支付宝、银联等）
     * isNullAble:1
     */
    private String modeId;

    /**
     * 应用渠道
     */
    private String channelId;

    /**
     * 支付日期
     */
    private Date billingDate;
    /**
     * 商户订单号
     * isNullAble:1
     */
    private String outTradeNo;

    /**
     * 支付平台订单号（支付宝微信等第三方支付平台订单号）
     * isNullAble:1
     */
    private String tradeNo;

    /**
     * 订单总金额
     * isNullAble:1
     */
    private BigDecimal totalFee;

    /**
     * 财务对账标志  (默认0 对账1)
     * isNullAble:1
     */
    private Byte accountFlag;

    private Date createDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getModeId() {
        return modeId;
    }

    public void setModeId(String modeId) {
        this.modeId = modeId;
    }

    public String getChannelId() {
        return channelId;
    }

    public void setChannelId(String channelId) {
        this.channelId = channelId;
    }

    public String getOutTradeNo() {
        return outTradeNo;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public BigDecimal getTotalFee() {
        return totalFee;
    }

    public void setTotalFee(BigDecimal totalFee) {
        this.totalFee = totalFee;
    }

    public Byte getAccountFlag() {
        return accountFlag;
    }

    public void setAccountFlag(Byte accountFlag) {
        this.accountFlag = accountFlag;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getBillingDate() {
        return billingDate;
    }

    public void setBillingDate(Date billingDate) {
        this.billingDate = billingDate;
    }
}
